wayland: Only attach the buffer if there was damage
authorJonas Ådahl <jadahl@gmail.com>
Tue, 16 Feb 2016 05:05:25 +0000 (13:05 +0800)
committerRay Strode <rstrode@redhat.com>
Tue, 16 Feb 2016 21:22:51 +0000 (16:22 -0500)
commit38b1f15f1257003fffd69f6017caefa57f56a24e
tree932e567205c0707b2cc82d129451cc63d88a2219
parent64c9ec14fea2a68377f7a9c5297fb24b365bf50e
wayland: Only attach the buffer if there was damage

There is no point in attaching and then committing the same buffer if
there was no damage. This will also make us do less unnecessary backfill
read backs, for the cases where we paint with an empty paint region.

https://bugzilla.gnome.org/show_bug.cgi?id=762120
gdk/wayland/gdkwindow-wayland.c